/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "粒子/粒子.h"
#include "物体/S_物体.h"




struct S_粒子系统 : public S_物体 {
	S_粒子系统配置*				m_粒子;
	//S_Mesh操作			f_getMesh();

	S_粒子系统(S_物体* setting = 0, uint32 key = 0);
	~S_粒子系统();

	void		f_启用物理状态();



	void		f_set位置(const vec3* xyz, uint32 num);



	void		f_Update(S_渲染参数& 更新参数);
	void		f_绘制(S_渲染参数& 渲染参数);

	void		f_set矩阵(const Mat44f* mat);
	void		f_set矩阵(const Mat44f* mat, uint32 num);
	void		f_set矩阵mt(const Mat44f* mat);

	void		f_set变换(const void* mat, uint32 id);


	//virtual		std::vector<S_物体*>	f_创建实例(uint32 num);
	//private:
	//S_结构对象指针	m_GPU参数;


};












